<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-pagedelete',plain:true"
   onclick="crud_deletes_${object.code}()">
    删除
</a>
<script type="text/javascript">
    var crud_deletes_${object.code} = function () {
        var $grid = $('#${gridId}');
        var array = $grid.datagrid('getSelections');
        var num = array.length; //获取要删除信息的个数
        if (num == "0") {
        	$.slideMsg("请选择一条记录！");
            return;
        }
//         var id2 = "";
//         for (var i = 0; i < array.length; i++) { //组成一个字符串，ID主键用逗号隔开
//             id2 = id2 + array[i].pk_val + ",";
//         }
        confirmDel($grid, '${object.code}', array);
    };
</script>